<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" />
  <script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script>

  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/bee.js"></script>
</head>

<body>
  <div id="app">
    <bee-form v-model="form" :option="option" @submit="submit">

    </bee-form>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        obj: {},
        option: {
          column: [
            {
              label: '文本1',
              prop: 'text1',
              change: ({value,column}) => {
                console.log('值改变',value,column)
                }
            },
            {
              label: '',
              labelWidth: 40,
              prop: 'divider',
              component: 'elInput',//ele分割线
              span: 24,
            //   params: {
            //     html: '<h2 style="color:red">自定义html标签</h2>',
            //     contentPosition: "left",
            //   },
              change: ({value,column}) => {
                console.log('值改变component',value,column)
                }
            },
            {
              label: '文本2',
              prop: 'text2'
            },
            // {
            //   label: '',
            //   labelWidth: 40,
            //   prop: 'calendar',
            //   component: 'elCalendar',//ele日期
            //   span: 24,
            //   params: {

            //   }
            // }
          ]
        }
      }
    }
  })
</script>

</html>